package com.example.api.mapper;

import com.example.api.model.entity.Inventory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface InventoryMapper {

    void insert(Inventory inventory);

    void update(Inventory inventory);

    List<Inventory> findAll();

    List<Inventory> findAllByCid(@Param("cid") String cid);

    List<Inventory> findAllByWid(@Param("wid") String wid);

    Inventory findByWidAndCid(@Param("wid") String wid, @Param("cid") String cid);
}
